
ArrayList Janelas = new ArrayList();
ArrayList JanelaPausada = new ArrayList();
Janela JanelaAnterior;

WHandle WH1;
TelaInicial telaInicial;
TelaPrincipal principal;
Opcoes opcoes;
Jogo jogo;
Creditos creditos;
Multiplayer multiplayer;
Instrucoes i;
Login login;
Registro registro;
Hiscore hiscore;
DB db1;

boolean tocou;
void setup(){
  frameRate(30);
  ellipseMode(RADIUS);
  rectMode(RADIUS);  
  size(640,360);
  
  db1 = new DB("pong", "root", "1234");
  
  
  telaInicial = new TelaInicial(); 
  principal = new TelaPrincipal();
  opcoes = new Opcoes();//musica, som);
  jogo = new Jogo();//musica, som);
  creditos = new Creditos();
  multiplayer = new Multiplayer();
  i = new Instrucoes();
  login = new Login();
  registro = new Registro();
  hiscore = new Hiscore();
  telaInicial.setActive();
  WH1 = new WHandle();

}

void draw() {
  WH1.update();
}

